package 动态规划.状态压缩dp;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author aodre , QQ : 480029069
 * @date 2022/12/22 16:57
 */
public class Copy {

    public static void main(String[] args) {
//        System.out.println(gcd(11,33));

        List<User> list = new ArrayList<>();
        for(int i = 0; i < 4;i++){
            list.add(new User(i,"ego" + i * 2,new Person()));
        }
//        System.out.println(list);
        for(User user : list)
            System.out.println(user);

        List<User> collect = list.stream().collect(Collectors.toList());
        System.out.println(collect == list);
        for(User user : collect)
            System.out.println(user);



    }

    static class User{
        int age ;
        String name;
       Person person ;

        public User(){}
        public User(int age, String name,Person person){
            this.age = age;
            this.person = person;
            this.name = name;
        }
    }

    static class Person{

    }

}
